﻿
// SrvrItem.h: CPocketServSrvrItem 类的接口
//

#pragma once

class CPocketServSrvrItem : public COleServerItem
{
	DECLARE_DYNAMIC(CPocketServSrvrItem)

// 构造函数
public:
	CPocketServSrvrItem(CPocketServDoc* pContainerDoc);

// 特性
	CPocketServDoc* GetDocument() const
		{ return reinterpret_cast<CPocketServDoc*>(COleServerItem::GetDocument()); }

// 重写
	public:
	virtual BOOL OnDraw(CDC* pDC, CSize& rSize);
	virtual BOOL OnGetExtent(DVASPECT dwDrawAspect, CSize& rSize);

// 实现
public:
	~CPocketServSrvrItem();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	virtual void Serialize(CArchive& ar);   // 为文档 I/O 重写
};

